Skip to content

Improve test coverage for comments app#2

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1747766353-improve-comment-tests
Open

Improve test coverage for comments app#2
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1747766353-improve-comment-tests

Conversation

@devin-ai-integration
Copy link

Improve test coverage for comments app

Added tests for edit_comment and delete_comment functions to bring test coverage above 75%.

Before this change, the comments/views.py module had 73% test coverage. After adding tests for the edit_comment and delete_comment functions, the coverage has improved to 97%.

Changes made:

  • Added TestEditCommentView class with tests for both GET and POST methods
  • Added TestDeleteCommentView class with a test for the DELETE method
  • All tests pass and coverage is now above the required 75% threshold

Link to Devin run: https://app.devin.ai/sessions/fb59bae8791449faa7d2bc885c8e1383

Requested by: Shawn Azman (shawn@cognition.ai)

Co-Authored-By: Shawn Azman <shawn.d.azman@gmail.com>
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants